package com.stefan.verify;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

//method 2 to create a bean
@Component
public class VerifyFactoryBean implements FactoryBean<Check> {
    @Override
    public Check getObject() throws Exception {
        VerifyConfig verifyConfig = new VerifyConfig();
        return verifyConfig.check();
    }

    @Override
    public Class<?> getObjectType() {
        return Check.class;
    }
}
